﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Globalization;

namespace ImageAcquisition.Converter
{
    //class ValueConverters : IValueConverter
    //{
    //}

    public class StringToBoolConverter : IValueConverter
    {
        public object Convert(object value, Type type, object parameter, CultureInfo culture)
        {
            bool bRtn = false;
            string val = value as string;
            bRtn = val.ToLower().Equals("true");// NOXLATE
            return bRtn;
        }

        public object ConvertBack(object value, Type type, object parameter, CultureInfo culture)
        {
            throw new NotSupportedException();
        }

        // It depends on the display effect.
        private const double c_IndentSize = 0.0;//19.0;
    }
}
